package cn.tedu.boyou.member.mapper;

import cn.tedu.boyou.member.domain.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserInfo record);

    UserInfo selectByPrimaryKey(Long id);

    List<UserInfo> selectAll();

    int updateByPrimaryKey(UserInfo record);

    int selectByPhone(String phone);

    UserInfo selectUseByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    //根据昵称查询用户
    UserInfo selectByNickname(String nickname);

    //修改用户信息
    void update(UserInfo userInfo);

}